package com.chutoutian.untils;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {

    public static Date addTime(Date date, Integer field, Integer time) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(field, time);
        return calendar.getTime();
    }

}
